/**
 * 
 */
package com.feng.thread;

import java.util.concurrent.TimeUnit;

/**
 * @author shipeng
 *
 */
public class MainApp {

  public static void main(String[] args) {

    UserThread userThread = new UserThread();

    new UserThread().start();
    try {
      TimeUnit.SECONDS.sleep(10);
    } catch (InterruptedException e) {
      e.printStackTrace();
    }
  }

  public static class UserThread extends Thread {

    @Override
    public void run() {}

    @Override
    public void setUncaughtExceptionHandler(UncaughtExceptionHandler eh) {
      System.out.println("user service exception");
    }
  }
}
